package com.example.helloworld;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.nio.charset.StandardCharsets;

/**
 * @author 张岩
 * @date 2022/3/18 15:25
 */
@Controller
public class HelloController {

	@Autowired
	private Person person;

	@ResponseBody
	@RequestMapping("/hello")
	public Person hello() {
		return person;
	}

}
